﻿@model blacksoft.Models.Movimiento

@{
    ViewBag.Title = "Edit";
    Layout = "~/Views/Shared/_LayoutCompras.cshtml";
}


<div class="clear"></div>
<div id="body">
    <div class="block big">
        <!-- Block Begin -->
        @using (Html.BeginForm())
        {
            @Html.AntiForgeryToken()

            <div class="form-horizontal">
                <h4>Merma</h4>
                <hr />
                @Html.ValidationSummary(true)
                <div class="form-row">
                    @Html.LabelFor(model => model.IDProgramacionViaje, "IDProgramacionViaje", new { @class = "control-label col-md-2" })
                    <div class="col-md-10">
                        @Html.DropDownList("IDProgramacionViaje", String.Empty)
                        @Html.ValidationMessageFor(model => model.IDProgramacionViaje)
                    </div>
                </div>

                <div class="form-row">
                    @Html.LabelFor(model => model.Cantidad, new { @class = "control-label col-md-2" })
                    <div class="col-md-10">
                        @Html.EditorFor(model => model.Cantidad)
                        @Html.ValidationMessageFor(model => model.Cantidad)
                    </div>
                </div>

                <div class="form-row">
                    @Html.LabelFor(model => model.IdAlmacen, "IdAlmacen", new { @class = "control-label col-md-2" })
                    <div class="col-md-10">
                        @Html.DropDownList("IdAlmacen", String.Empty)
                        @Html.ValidationMessageFor(model => model.IdAlmacen)
                    </div>
                </div>

                @Html.HiddenFor(model => model.IdMovimiento)

                <div class="form-row">
                    @Html.LabelFor(model => model.Tipo, new { @class = "control-label col-md-2" })
                    <div class="col-md-10">
                        @Html.EditorFor(model => model.Tipo)
                        @Html.ValidationMessageFor(model => model.Tipo)
                    </div>
                </div>

                <div class="form-group">
                    <div class="col-md-offset-2 col-md-10">
                        <input type="submit" value="Guardar" class="btn btn-default" />
                    </div>
                </div>
            </div>
        }
    </div><!-- Block End -->
</div>

<div>
    @Html.ActionLink("Regresar", "Index")
</div>
